package cn.gzsxt.music.query;

public class QueryObject {
	//当前页
	private Integer page = 1;
	//每页条数
	private Integer rows = 10;
	//起始索引
	public Integer getBeginIndex() {
		return (page - 1) * rows;
	}
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getRows() {
		return rows;
	}
	public void setRows(Integer rows) {
		this.rows = rows;
	}
	@Override
	public String toString() {
		return "QueryObject [page=" + page + ", rows=" + rows + "]";
	}
	
}
